<!DOCTYPE html>
<html>
<head>
<title>list.html</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link href="${frontRes}/uploadify/uploadify.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="${frontRes}/javascript/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="${frontRes}/uploadify/jquery.uploadify.js"></script>
<script type="text/javascript">
    $(function () {
        $("#uploadPic").uploadify({
            //指定swf文件
            'swf': '${frontRes}/uploadify/uploadify.swf',
            //后台处理的页面
            'uploader': '${base}/uploadPic/',
            //按钮显示的文字
            'buttonText': '上传文件',
            //选择文件后自动上传
            'auto': true,
            //设置为true将允许多文件上传
            'multi': true,
            'fileObjName': 'files',
            'fileTypeExts': '*'
        });
    });
</script>
</head>
<body>
	<h1>病人列表</h1> 
	欢迎您：${user.realname} <a href="${base}/logout">退出</a>
	<br><br>
	<input type="file" id="uploadPic"/>
	<form action="${base}/sick/detail" method="post">
		<input type="text" name="id" />
		<input type="submit" value="查询" />
	</form>
	<br>
	<table border="1">
		<tr>
			<td>id</td>
			<td>姓名</td>
			<td>性别</td>
			<td>年龄</td>
			<td>操作</td>
		</tr>
		[#list page.list as sick]
		<tr>
			<td>${sick.id}</td>
			<td>${sick.name}</td>
			<td>${sick.sex}</td>
			<td>${sick.age}</td>
			<td><a href="${base}/sick/detail?id=${sick.id}">查看</a></td>
		</tr>
		[/#list]
	</table>
	
	<br>
	[#include "page.html"/]
</body>
</html>
